component accessors="true" extends="controllerbase" {
	property product;
	this.entityObj ="product";



	public void function list(rc){
		//当前模块分页条件
		var moduleSqlWhere = "";
		if( structKeyExists(rc, "equipmenttype") && len(trim(rc.equipmenttype)) >0 ){
			var moduleSqlWhere = " and  equipmenttype = #rc.equipmenttype# ";
		}

		if( structKeyExists(rc, "procode") && len(trim(rc.procode)) >0 ){
			var moduleSqlWhere = " and  procode like '%#rc.procode#%' ";
		}

		if( structKeyExists(rc, "procode") && len(trim(rc.procode)) >0 ){
			var moduleSqlWhere = " and  procode like '%#rc.procode#%' ";
		}

		if( structKeyExists(rc, "prochsname") && len(trim(rc.prochsname)) >0 ){
			var moduleSqlWhere = " and  prochsname like '%#rc.prochsname#%' ";
		}

		if( structKeyExists(rc, "propysimplespell") && len(trim(rc.propysimplespell)) >0 ){
			var moduleSqlWhere = " and  propysimplespell like '%#rc.propysimplespell#%' ";
		}

		if( structKeyExists(rc, "propysimplespell") && len(trim(rc.propysimplespell)) >0 ){
			var moduleSqlWhere = " and  propysimplespell like '%#rc.propysimplespell#%' ";
		}

		if( structKeyExists(rc, "issale") && len(trim(rc.issale)) >0 ){
			var moduleSqlWhere = " and  issale = #rc.issale# ";
		}

		if( structKeyExists(rc, "status") && len(trim(rc.status)) >0 ){
			var moduleSqlWhere = " and  status = #rc.status# ";
		}

		super.list(rc,moduleSqlWhere);
	}

	public void function indexbat(rc){
		rc.data = variables.product.indexbat(rc);
		variables.fw.renderData('json', true);
	}

	public void function topbat(rc){
		rc.data = variables.product.topbat(rc);
		variables.fw.renderData('json', true);
	}

	public void function newbat(rc){
		rc.data = variables.product.newbat(rc);
		variables.fw.renderData('json', true);
	}

	public void function hotbat(rc){
		rc.data = variables.product.hotbat(rc);
		variables.fw.renderData('json', true);
	}

	public void function specialbat(rc){
		rc.data = variables.product.specialbat(rc);
		variables.fw.renderData('json', true);
	}

	public void function channellbat(rc){
		rc.data = variables.product.channellbat(rc);
		variables.fw.renderData('json', true);
	}

	public void function salebat(rc){
		rc.data = variables.product.salebat(rc);
		variables.fw.renderData('json', true);
	}

	public void function statusbat(rc){
		rc.data = variables.product.statusbat(rc);
		variables.fw.renderData('json', true);
	}

	public void function otctypebat(rc){
		rc.data = variables.product.otctypebat(rc);
		variables.fw.renderData('json', true);
	}

	public void function medicaltypebat(rc){
		rc.data = variables.product.medicaltypebat(rc);
		variables.fw.renderData('json', true);
	}

	public void function importFile(rc){
		variables.product.importFile(rc);
		variables.fw.renderData('json', true);
	}
}